package com.sky.module.system.apistatistics.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sky.module.system.apistatistics.domain.entity.ApiStatisticsEntity;
import com.sky.module.system.userloginrecord.domain.po.ApiStatisticesPo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author
 * @date 2023/3/12 10:26
 **/
@Repository
@Mapper
public interface ApiStatisticsMapper extends BaseMapper<ApiStatisticsEntity> {
    /***
    * @description TODO
    * @param userId
    * @return void
    * @date 2023/3/12 23:19
    *
    */
    void updateCount(Long userId);

    /***
    * @description TODO
    * @param userId
    * @return com.sky.module.system.userloginrecord.domain.po.ApiStatisticesPo
    * @date 2023/3/12 23:19
    *
    */
    public ApiStatisticesPo getWeekAccessCount(Long userId);

    /***
    * @description TODO
    * @param userId
    * @return java.lang.Long
    * @date 2023/3/12 23:18
    *
    */
    Long getApiStatisticesTotalCount(Long userId);

}
